increase robustness of <img> tag in Text component
Origin: upstream, https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=
4aaf9bf21f7cc69d
Last-Update: 2025-12-09
For Text.StyledText, there was no protection against <img> tags
with very large widths or heights. This could cause an application
to spend a very long time processing a layout and sometimes crash
if the size was too large.
We reuse the internal coord limit in QPainter as our maximum size
here, similar to what we do in Qt Svg for instance.
For Text.RichText, there were no issues in release builds, but in
debug builds, you could trigger an overflow assert when rounding
the number if it exceeded INT_MAX. For this, we simply cap the
width and height at INT_MAX.
Gbp-Pq: Name CVE-2025-12385.patch